/**
 * ISysDictIndexService.java
 * Created at 2017-1-24
 * Created by guhuajie
 * Copyright (C) 2017 BROADTEXT SOFTWARE, All rights reserved.
 */
package com.broadtext.rms.system.service;

import java.util.List;

import com.broadtext.common.exp.DaoException;
import com.broadtext.common.exp.ServiceException;
import com.broadtext.common.service.IEntityService;
import com.broadtext.rms.system.model.SysDictIndex;

/**
 * <p>ClassName: ISysDictIndexService</p>
 * <p>Description: 字典索引业务接口类</p>
 * <p>Author: guhuajie</p>
 * <p>Date: 2017-1-24</p>
 */
public interface ISysDictIndexService extends IEntityService<SysDictIndex> {

    /**
     * 
     * <p>Description: 根据parentKey获取字典详情</p>
     * @param parentKey  parentKey
     * @return 字典详情
     * @throws DaoException 异常
     */
    public List<Object> getDictByParentKey(String parentKey) throws DaoException;

    /**
     * 
     * <p>Description: 更新字典</p>
     * @param dict 对象
     * @return 布尔值
     * @throws ServiceException 异常
     */
    public boolean updateDict(SysDictIndex dict) throws ServiceException;

    /**
     * 
     * <p>Description: 删除字典索引</p>
     * @param idArray dictindex主键数组
     * @param updateUser 更新人
     * @throws DaoException 异常
     * @throws ServiceException 异常
     */
    public void deleteDictIndex(String[] idArray, String updateUser) throws DaoException, ServiceException;

    /**
     * 
     * <p>Description: 保存或编辑字典</p>
     * @param currentUser 当前登录人
     * @param dict 字典
     * @throws ServiceException 异常
     * @throws DaoException 异常
     */
    public Object saveOrUpdateDict(String currentUser, SysDictIndex dict) throws ServiceException, DaoException;

}
